package com.zz.hhbl.entity

import android.os.Parcelable
import com.zz.framework.core.ext.fromJsonNullable
import kotlinx.android.parcel.Parcelize

@Parcelize
data class TourGuideCommentaryEntity(
    val detailId: Int? = 0,
    val exampleImage: String? = "",
    val hintAudio: String? = "",
    val id: Int = 0,
    val isTriggered: Int? = 0,
    val language: String? = "",
    var distance: Float = 0.0f,
    val latitude: Double = 0.0,
    val longitude: Double = 0.0,
    val lectureAudio: String? = "",
    val lectureContent: String? = "",
    val lectureContentJson: String? = "",
    val lectureType: String? = "",
    val orderBy: Int = 0,
    val pointName: String? = "",
    val remark: String? = null,
    val scenicSpotId: Int? = 0,
    val tags: String? = ""
) : Parcelable{
    fun getLectureContentList():List<LectureContentEntity>? {
        return lectureContentJson?.fromJsonNullable<List<LectureContentEntity>>()
    }
}


//"id": 10,
//"scenicSpotId": 7,
//"lectureType": "default",
//"longitude": 0.000000,
//"latitude": 0.000000,
//"isTriggered": 0,
//"orderBy": 1,
//"remark": null,
//"detailId": 10,
//"language": "zh-CN",
//"pointName": "产品介绍",
//"lectureContent": "大家好！欢迎来到重庆湖广会馆参观游览！我是你的人工智能导游-李欢欢，请叫我欢欢。今天由我为大家解说，希望能够让您满意。",
//"lectureContentJson": "[\n  {\n    \"time\": \"2.020\",\n    \"text\": \"大家好 欢迎来到重庆湖广会馆参观游览\"\n  },\n  {\n    \"time\": \"6.800\",\n    \"text\": \"我是你的人工智能导游李欢欢 请叫我欢欢 今天由我为大家解说\"\n  },\n  {\n    \"time\": \"13.990\",\n    \"text\": \"希望能够让您满意\"\n  }\n]",
//"exampleImage": "http://14.103.144.167:9000/senlian/2025/01/24/001自我介绍_resized_20250124150547A005.png",
//"lectureAudio": "http://14.103.144.167:9000/senlian/2025/01/17/001-产品介绍_20250117164438A003.mp3",
//"hintAudio": "http://14.103.144.167:9000/senlian/2025/02/06/产品介绍提示语音_20250206184301A003.wav",
//"tags": "介绍"